﻿using System.Collections.Generic;
using Yyyg.Models;

namespace Yyyg.WebUI.Models
{
    public class GoodInfoBaseVM
    {
        /// <summary>
        /// 有关商品的主要信息
        /// </summary>
        public Goods Info { get; set; }

        /// <summary>
        /// 该商品的主图相对路径
        /// </summary>
        public string MainUrl { get; set; }
        /// <summary>
        /// 包含商品的附属图片相对路径
        /// </summary>
        public string[] SubUrls { get; set; }

        /// <summary>
        /// 该商品的分类信息
        /// </summary>
        public GoodType GoodType { get; set; }

        /// <summary>
        /// 商品购买时间线
        /// </summary>
        public List<TimeLineItem> ByTimeLine { get; set; } = new List<TimeLineItem>();

        /// <summary>
        /// 往期云购
        /// </summary>
        public List<Rushby_over> Earliers { get; set; } = new List<Rushby_over>();

        public class TimeLineItem
        {
            public string Time { get; set; }

            public List<Orders> Orders { get; set; }
        }
    }
}